<div class="tbnd_header nav_wrapper">
	<div class="nav_wrapper">
		<div id="header"> <!--start header -->
			<a href="<?php print BASE_URL;?>" title="Zillow Real Estate" class="tbnd_logo tbnd_logo_link" accesskey="1">
				<span class="tbnd_logo_text">Zillow Real Estate &amp;amp; Homes for Sale</span>
			</a>
			<div class="nav_primary left mar_l_20">
				<ul class="l_inline tbnd_nav dropdown_hoverable no_ancillary_nav">
					<li data_nav_level="1" class="dropdown homes_tab top_nav_tab rollable">
						<a href="<?php print BASE_URL;?>" class="<?php if(arg(0) == '') print 'is_selected';?> nav_item nav_primary_item nav_item_button dropdown_trigger responsive_nav_item" id="top_nav_homes"  title="Trang chủ" data_ga_label="None">Trang chủ</a>
						<div class="dropdown_bd">
							<ul class="dropdown_content nav l_stacked">
								<li><a href="/homes/for_sale/" class="nav_item track_ga_event" data_ga_action="Homes" title="Homes For Sale" data_ga_category="TopNav" data_ga_label="Homes For Sale"> Homes For Sale</a></li>
								<li><a href="/homes/fsbo/" class="nav_item track_ga_event" data_ga_action="Homes" title="Homes For Sale By Owner" data_ga_category="TopNav" data_ga_label="For Sale By Owner"> Homes For Sale By Owner</a></li>                                    
							</ul>
						</div>
					</li>
					<li data_nav_level="3" class="dropdown homes_tab top_nav_tab rollable">
						<a href="<?php print BASE_URL . 'tim-kiem-nha-dat?slb_type_post=2';?>" class="<?php if($_GET['slb_type_post'] == 2)print 'is_selected';?> nav_item nav_primary_item nav_item_button dropdown_trigger responsive_nav_item"  id="top_nav_homes" title="Nhà đất bán"  data_ga_label="None">Nhà đất bán</a>
						<div class="dropdown_bd">
							<ul class="dropdown_content nav l_stacked">
								<li><a href="/homes/for_sale/" class="nav_item track_ga_event" data_ga_action="Homes" title="Homes For Sale" data_ga_category="TopNav" data_ga_label="Homes For Sale"> Homes For Sale</a></li>
								<li><a href="/homes/fsbo/" class="nav_item track_ga_event" data_ga_action="Homes" title="Homes For Sale By Owner" data_ga_category="TopNav" data_ga_label="For Sale By Owner"> Homes For Sale By Owner</a></li>                                    
							</ul>
						</div>
					</li>
					<li data_nav_level="4" class="dropdown homes_tab top_nav_tab rollable">
						<a href="<?php print BASE_URL . 'tim-kiem-nha-dat?slb_type_post=1';?>" class="<?php if($_GET['slb_type_post'] == 1)print 'is_selected';?> nav_item nav_primary_item nav_item_button dropdown_trigger responsive_nav_item" data_ga_action="Homes" id="top_nav_homes" data_overflow_item_class="tbnd_responsive_nav_item" title="Nhà đất cho thuê" data_ga_category="TopNav" data_ga_label="None">Nhà đất cho thuê</a>
						<div class="dropdown_bd">
							<ul class="dropdown_content nav l_stacked">
								<li><a href="/homes/for_sale/" class="nav_item track_ga_event" data_ga_action="Homes" title="Homes For Sale" data_ga_category="TopNav" data_ga_label="Homes For Sale"> Homes For Sale</a></li>
								<li><a href="/homes/fsbo/" class="nav_item track_ga_event" data_ga_action="Homes" title="Homes For Sale By Owner" data_ga_category="TopNav" data_ga_label="For Sale By Owner"> Homes For Sale By Owner</a></li>                                    
							</ul>
						</div>
					</li>
					<li data_nav_level="5" class="dropdown homes_tab top_nav_tab rollable">
						<a href="<?php print BASE_URL . 'tim-kiem-nha-dat?slb_type_post=2';?>" class="nav_item nav_primary_item nav_item_button dropdown_trigger responsive_nav_item" data_ga_action="Homes" id="top_nav_homes" data_overflow_item_class="tbnd_responsive_nav_item" title="Tin tức" data_ga_category="TopNav" data_ga_label="None">Tin tức</a>
						<div class="dropdown_bd">
							<ul class="dropdown_content nav l_stacked">
								<li><a href="/homes/for_sale/" class="nav_item track_ga_event" data_ga_action="Homes" title="Homes For Sale" data_ga_category="TopNav" data_ga_label="Homes For Sale"> Homes For Sale</a></li>
								<li><a href="/homes/fsbo/" class="nav_item track_ga_event" data_ga_action="Homes" title="Homes For Sale By Owner" data_ga_category="TopNav" data_ga_label="For Sale By Owner"> Homes For Sale By Owner</a></li>                                    
							</ul>
						</div>
					</li>					
					<li data_nav_level="6" class="dropdown homes_tab top_nav_tab rollable">
						<a href="<?php print BASE_URL . 'tim-kiem-nha-dat?slb_type_post=2';?>" class="nav_item nav_primary_item nav_item_button dropdown_trigger responsive_nav_item" data_ga_action="Homes" id="top_nav_homes" data_overflow_item_class="tbnd_responsive_nav_item" title="Phong thủy" data_ga_category="TopNav" data_ga_label="None">Phong thủy</a>
						<div class="dropdown_bd">
							<ul class="dropdown_content nav l_stacked">
								<li><a href="/homes/for_sale/" class="nav_item track_ga_event" data_ga_action="Homes" title="Homes For Sale" data_ga_category="TopNav" data_ga_label="Homes For Sale"> Homes For Sale</a></li>
								<li><a href="/homes/fsbo/" class="nav_item track_ga_event" data_ga_action="Homes" title="Homes For Sale By Owner" data_ga_category="TopNav" data_ga_label="For Sale By Owner"> Homes For Sale By Owner</a></li>                                    
							</ul>
						</div>
					</li>
					<li data_nav_level="7" class="dropdown homes_tab top_nav_tab rollable">
						<a href="<?php print BASE_URL . 'tim-kiem-nha-dat?slb_type_post=2';?>" class="nav_item nav_primary_item nav_item_button dropdown_trigger responsive_nav_item" data_ga_action="Homes" id="top_nav_homes" data_overflow_item_class="tbnd_responsive_nav_item" title="Hỏi đáp" data_ga_category="TopNav" data_ga_label="None">Hỏi đáp</a>
						<div class="dropdown_bd">
							<ul class="dropdown_content nav l_stacked">
								<li><a href="/homes/for_sale/" class="nav_item track_ga_event" data_ga_action="Homes" title="Homes For Sale" data_ga_category="TopNav" data_ga_label="Homes For Sale"> Homes For Sale</a></li>
								<li><a href="/homes/fsbo/" class="nav_item track_ga_event" data_ga_action="Homes" title="Homes For Sale By Owner" data_ga_category="TopNav" data_ga_label="For Sale By Owner"> Homes For Sale By Owner</a></li>                                    
							</ul>
						</div>
					</li>
				</ul>
			</div>
			<div id="login_block" class="login_block">
				<ul class="l_inline tbnd_nav dropdown_hoverable">   
					<li>
                       <a href="<?php if(user_is_logged_in()){ print BASE_URL . 'dang-tin-rao-vat-nha-dat'; }else{ print 'javascript:;'; };?>" class="nav_item nav_primary_item nav_item_button <?php if(!user_is_logged_in()) print 'show_login';?>" id="login_opener" title="Sign In" data_ga_label="TopNav" rel="nofollow">Đăng tin</a>
					</li>       
                    <?php if(!user_is_logged_in()): ?>
					<li>
					   <a href="javascript:;" onClick="fblogin();" class="nav_item nav_primary_item nav_item_button show_lightbox auth_required login" id="login_opener" title="Sign In" data_ga_label="TopNav" rel="nofollow">Đăng nhập</a>
				   </li>				
                   <?php else: ?>
                   	<li>
					   <a href="<?php print BASE_URL . 'trang-ca-nhan/thong-tin-ca-nhan.html';?>"  class="nav_item nav_primary_item nav_item_button" title="<?php print $GLOBALS['user']->name;?>" data_ga_label="TopNav" rel="nofollow"><?php print $GLOBALS['user']->name;?></a>
				   </li>
                   <?php endif; ?>
				</ul>
			</div>
			<div class="clf"></div>
		</div> <!--END-header--->            
	</div>
	<div class="clf"></div>
</div>
